<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
session_start();

class Logout extends CI_Controller {
 
function index()
{
		$this->session->unset_userdata('user');
		// header("Location: $this->url");
		redirect('admin/login');
}	
}